<template>
	<view class="address-box">
		<addressItem></addressItem>
		<view @click="onAddress()" class="address-bottom">
			<uni-icons type="plus" color="white" size="24"></uni-icons>
			添加新地址
		</view>
		<addressVue :showBottom="showBottom" @child-event="isShowBottom"></addressVue>
	</view>
</template>

<script>
	import addressVue from '../../../components/address/address.vue';
	import addressItem from '../../../components/address-item/address-item.vue';
	export default {
		components:{addressVue,addressItem},
		data() {
			return {
				showBottom:false
			}
		},
		methods: {
			isShowBottom(falg){
				this.showBottom=false;
			},
			onAddress(){
				this.showBottom=true;
			}
		}
	}
</script>

<style>
	.address-box{
		
	}
	.address-bottom{
		width: 100%;
		height: 100rpx;
		background-color:blue;
		position: fixed;
		bottom: 0;
		left: 0;
		color: white;
		font-size: 30rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>
